package com.rgst.utils;

import org.apache.commons.lang3.StringUtils;
import org.springframework.util.Assert;

/**
 * Created by tancw on 2019/12/14.
 */
public class Gssert extends Assert {

    public static void notEmpty(String value, String message) {
        if (StringUtils.isBlank(value)) {
            throw new IllegalArgumentException(message);
        }
    }

    public static void notEmpty(String value) {
        if (StringUtils.isBlank(value)) {
            throw new IllegalArgumentException("参数不能为空");
        }
    }
}
